package com.ycl.plus.lm.hardware.mapper;

import com.ycl.plus.lm.hardware.domain.HardwareEquipSensor;
import com.ycl.plus.lm.hardware.domain.vo.HardwareEquipSensorVo;
import com.ycl.plus.lm.common.mybatis.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 设备和传感器关联Mapper接口
 *
 * @author devil-ycl
 * @date 2024-11-07
 */
public interface HardwareEquipSensorMapper extends BaseMapperPlus<HardwareEquipSensor, HardwareEquipSensorVo> {

    @Select("select sensor_id from hardware_equip_sensor where equip_id = #{equipId}")
	List<Long> selectSensorIdsByEquipId(Long equipId);
}
